﻿<Window x:Class="IllSoft.Xvcc.WpfUI.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
    xmlns:c="clr-namespace:IllSoft.Xvcc.Volano.Client;assembly=IllSoft.Xvcc.Volano.Client"
    Title="eXtended Volano Chat Client" Width="800" Height="600">
    
    <DockPanel Name="mainDockPanel" AllowDrop="True">
        <ToolBar DockPanel.Dock="Top">
            <Button Name="connectButton" Content="Connect" Click="connectButton_Click" />
            <Button Name="testWindowButton" Content="Test Window" />
            <Separator/>
            <Menu>
                <MenuItem Header="Menu">
                    <MenuItem Header="File">
                        <MenuItem Header="Copy"/>
                        <MenuItem Header="Paste"/>
                    </MenuItem>
                </MenuItem>
            </Menu>
        </ToolBar>
        <ad:DockingManager Name="mainDockingManager" DockPanel.Dock="Bottom">
            <ad:ResizingPanel Orientation="Horizontal">
                <ad:DockablePane ad:ResizingPanel.ResizeWidth="150">
                    <ad:DockableContent Title="Server Explorer">
                        <ListView>
                            <ListViewItem>Chat Server 1</ListViewItem>
                            <ListViewItem>Chat Server 2</ListViewItem>
                            <ListViewItem>Chat Server 3</ListViewItem>
                        </ListView>
                    </ad:DockableContent>
                </ad:DockablePane>
                <ad:ResizingPanel Orientation="Vertical">
                    <ad:DocumentPane>
                    </ad:DocumentPane>
                    <ad:DockablePane ad:ResizingPanel.ResizeHeight="150">
                        <ad:DockableContent Title="Log">
                            <RichTextBox Name="logRichTextbox">
                                <RichTextBox.Resources>
                                    <Style TargetType="{x:Type Paragraph}">
                                        <Setter Property="Margin" Value="0"/>
                                    </Style>
                                </RichTextBox.Resources>
                            </RichTextBox>
                        </ad:DockableContent>
                    </ad:DockablePane>
                </ad:ResizingPanel>
            </ad:ResizingPanel>
        </ad:DockingManager>
    </DockPanel>
</Window>
